<?php

namespace app\common\model;

use think\Model;
use think\Paginator;

class FriendModel extends Model
{
    protected $name = 'friend';

    /**
     * @throws \think\db\exception\DbException
     */
    public  function getListData(): array
    {
      return  $this->order('id DESC')->paginate(tp_page())->toArray();
    }


}